<div id='loggedin-form' class='right'><?php
      if (isset($_POST['logout_submit'])) {
		logout();
	}
if($access_level>0) { ?>
<?php
	$form = new Form('logout_form','post');
	$form->text("Welcome, <b> ".$_SESSION['user']->full_name.'</b> ');
	//$form->button('profile','Profile',array('type'=>'button','onclick'=>'javascript:window.location="profile.php"'),false);
	$form->button('logout_submit','Logout',array(),false);
	print $form->build();
}?>
</div>